package com.proto.test;
import com.alibaba.fastjson.JSON;
import com.proto.test.Demo.Request1000;

import java.util.Arrays;
import java.util.Date;

/**
 * Created by MD-01 on 2017/3/2.
 */
public class Main {

    public static void main(String[] args){

        Request1000.Params params = Request1000.Params
                .newBuilder()
                .setName("戴泽")
                .setTimestamp(new Date().getTime())
                .addAllUsernames(Arrays.asList("daize1","daize2"))
                .build();
        Request1000 request = Request1000.newBuilder()
                .setParams(params)
                .build();
        System.out.println(request.toString());
        System.out.println(request.getParams().getName());
    }
}
